
import axios from '@/libs/request/axios'


// 获取黑名单数据
export function getBlackList(obj) {
    return axios.request({
        url: '/channel/black/getBlackList',
        method: 'POST',
        data: obj
    })
}

/**
 *新增黑名单
 * @param obj
 * @returns {*}
 */
export function save(obj) {
    return axios.request({
        url: '/channel/black/save',
        method: 'POST',
        data: obj
    })
}

/**
 * 修改黑名单
 * @param obj
 * @returns {*}
 */
export function edit(obj) {
    return axios.request({
        url: '/channel/black/edit',
        method: 'POST',
        data: obj
    })
}
// 申请解除黑名单
export function removeBlacklist(obj) {
    return axios.request({
        url: '/channel/black/removeBlacklist',
        method: 'POST',
        data: obj
    })
}
// 审核黑名单
export function blackApplyExamine(obj) {
    return axios.request({
        url: '/channel/black/blackApplyExamine',
        method: 'POST',
        data: obj
    })
}

// 解除黑名单审核
export function blackRelieveExamine(obj) {
    return axios.request({
        url: '/channel/black/blackRelieveExamine',
        method: 'POST',
        data: obj
    })
}

// 获取申请中的黑名单数据
export function getApproveList(obj) {
    return axios.request({
        url: '/channel/black/getApproveList',
        method: 'POST',
        data: obj
    })
}
